package com.carman.pos.api;

public interface InterfaceApi {
	
	public static final int SUCCESS = 0;
	public static final int ERR = -1;
	
	public int openDevice(String PRN_NAME,int iCBaudrate,int flowCtl);
	public int closeDevice();
	public int writeBuffer(byte[] writeBuffer, int offsetSize, int nBytesToWrite, int writeTimeOut);
	public int readBuffer(byte[] readBuffer, int offsetSize, int nBytesToRead, int readTimeOut);
	public boolean isOpen();
	public int flush(int ioFlag);
	
}
